package test.day2;

import org.omg.CORBA.PUBLIC_MEMBER;

import com.sun.java_cup.internal.runtime.virtual_parse_stack;

public class Performer {
	public void play(Instrument instrument){
		instrument.sound();
	}
	
	public static void main(String[] args) {
		Instrument piano=new Piano();
		Instrument guitar=new Guitar();
		Performer performer=new Performer();
		performer.play(guitar);
		performer.play(piano);
		
	}
}
